namespace mplat {
    export class MzUiInterface extends BaseUiInterface {
        showModal(title: IShowModalInfo) {
            // if (qg['showModal']) {
            //     qg.showModal(title as _showModalObject)
            // }
            debugLog('魅族没有实现 showModal')
        }

        showLoading(title: string, mask?: boolean): void {
            debugLog('魅族没有实现 showLoading')
            // qg.showLoading({ title, mask } as _showLoadingObject)
        }
        hideLoading(): void {
            debugLog('魅族没有实现 hideLoading')
            // qg.hideLoading()
        }
        showToast(obj: _showToastObject): void {
            window['mz']['showToast']({ message: obj.title, duration: obj.duration > 1000 ? 1 : 0 })
        }
        hideToast(): void {
            // 不需要调用，showToast会自动处理关闭
            debugLog('魅族没有实现 hideToast')
        }
    }
}